package com.example;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/helloWorld")
public class HelloWorld {

	@RequestMapping(value="/{name}",method=RequestMethod.GET)
	@ResponseBody
	public String sayHello(@PathVariable String name){
		
		return "hello: "+name;
	}
}
